package cn.stylefeng.guns.modular.order.entity;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import lombok.Data;

/**
 * 出库订单明细表
 */
@TableName("out_order_detailed")
@Data
public class OutOrderDetailed implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 工厂号
     */
    @TableField("detailed_factory")
    private String detailedFactory;

    /**
     * 出库订单编号
     */
    @TableField("detailed_out_number")
    private String detailedOutNumber;

    /**
     * 商品id
     */
    @TableField("detailed_goods_id")
    private Long detailedGoodsId;

    /**
     * 商品编号
     */
    @TableField("detailed_goodscode")
    private String detailedGoodscode;

    /**
     * 商品名称
     */
    @TableField("detailed_goodsname")
    private String detailedGoodsname;

    /**
     * 货号
     */
    @TableField("goods_no")
    private String goodsNo;

    /**
     * 大包数
     */
    @TableField("detailed_putbalenum")
    private String detailedPutbalenum;

    /**
     * 数量
     */
    @TableField("detailed_number")
    private String detailedNumber;

    /**
     * 重量
     */
    @TableField("detailed_weight")
    private String detailedWeight;

    /**
     * 应出重量
     */
    @TableField("detailed_out_weight")
    private String detailedOutWeight;

    /**
     * 体积
     */
    @TableField("detailed_volume")
    private String detailedVolume;

    /**
     * 应出体积
     */
    @TableField("detailed_out_volume")
    private String detailedOutVolume;

    /**
     * 单价
     */
    @TableField("detailed_price")
    private String detailedPrice;

    /**
     * 金额
     */
    @TableField("detailed_money")
    private String detailedMoney;

    /**
     * 批号
     */
    @TableField("detailed_batchnumber")
    private String detailedBatchnumber;

    /**
     * 生产日期
     */
    @TableField("detailed_date")
    private String detailedDate;

    /**
     * 重泡货
     */
    @TableField("detailed_rebubbles")
    private String detailedRebubbles;

    /**
     * 商品大类
     */
    @TableField("detailed_largeclass")
    private String detailedLargeclass;

    /**
     * 商品类别
     */
    @TableField("detailed_goodstype")
    private String detailedGoodstype;

    /**
     * 保管条件
     */
    @TableField("detailed_putcondition")
    private String detailedPutcondition;

    /**
     * 单位
     */
    @TableField("goods_unit")
    private String goodsUnit;

    /**
     * 包装
     */
    @TableField("detailed_packing")
    private String detailedPacking;

    /**
     * 规格
     */
    @TableField("goods_specs")
    private String goodsSpecs;

    /**
     * 备注
     */
    @TableField("detailed_note")
    private String detailedNote;

    /**
     * 乐观锁
     */
    @TableField("version")
    private Integer version;

    /**
     * 创建时间
     */
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 修改时间
     */
    @TableField(value = "update_time", fill = FieldFill.UPDATE)
    private Date updateTime;

    /**
     * 创建用户
     */
    @TableField(value = "create_user", fill = FieldFill.INSERT)
    private Long createUser;

    /**
     * 修改用户
     */
    @TableField(value = "update_user", fill = FieldFill.UPDATE)
    private Long updateUser;

    @Override
    public String toString() {
        return "OutOrderDetailed{" +
        "id=" + id +
        ", detailedFactory=" + detailedFactory +
        ", detailedGoodscode=" + detailedGoodscode +
                ", detailedOutNumber=" + detailedOutNumber +
        ", detailedGoodsId=" + detailedGoodsId +
        ", detailedGoodsname=" + detailedGoodsname +
        ", detailedPutbalenum=" + detailedPutbalenum +
        ", detailedNumber=" + detailedNumber +
        ", detailedWeight=" + detailedWeight +
        ", detailedVolume=" + detailedVolume +
        ", detailedPrice=" + detailedPrice +
        ", detailedMoney=" + detailedMoney +
        ", detailedBatchnumber=" + detailedBatchnumber +
        ", detailedDate=" + detailedDate +
        ", detailedRebubbles=" + detailedRebubbles +
        ", detailedPacking=" + detailedPacking +
        ", detailedLargeclass=" + detailedLargeclass +
        ", detailedGoodstype=" + detailedGoodstype +
        ", detailedPutcondition=" + detailedPutcondition +
        ", detailedNote=" + detailedNote +
        ", version=" + version +
        ", createTime=" + createTime +
        ", updateTime=" + updateTime +
        ", createUser=" + createUser +
        ", updateUser=" + updateUser +
        "}";
    }
}
